﻿using System.Reflection;
using KongMing.WebTools.Contract;

namespace KongMing.WebTools.Common
{
    public class Helper
    {
        public static Dictionary<int,string> GetOrmTypes()
        {
            var dic = new Dictionary<int,string>();
            foreach (OrmType item in Enum.GetValues(typeof(OrmType)))
            {
                dic.Add((int)item,item.ToString());
            }
            return dic;
        }

        public static Dictionary<int, string> GetExpandScanTypes()
        {
            var dic = new Dictionary<int, string>();
            foreach (ExpandScanType item in Enum.GetValues(typeof(ExpandScanType)))
            {
                dic.Add((int)item, item.ToString());
            }
            return dic;
        }
    }
}
